package com.pgeg.registry;

import net.minecraft.enchantment.Enchantment;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;

import static com.pgeg.listener.EnchantmentListener.*;
import static com.pgeg.util.Reference.MODID;

public class EnchantmentRegistry {


    public static void registerEnchantment() {
        initEnchantment("frost", FROST);
        initEnchantment("lighting_bow", LIGHTING_BOW);
        initEnchantment("wither_blade", WITHER_BLADE);
        initEnchantment("vampire", VAMPIRE);
        initEnchantment("fire_bow", FIRE_BOW);
    }


    private static void initEnchantment(String path, Enchantment enchantment) {
        Registry.register(Registry.ENCHANTMENT, new Identifier(MODID, path), enchantment);
    }
}
